﻿using System;

namespace PocketBook.Model
{
    [AttributeUsage(AttributeTargets.Property)]
    public class SortPriorityAttribute : Attribute
    {
        public SortPriorityAttribute(int sortPriority)
        {
            SortPriority = Math.Max(0, sortPriority);
        }

        public int SortPriority
        {
            get; private set;
        }
    }
}